﻿using RestSharp;
using System;
using System.Collections.Generic;
using System.Web;
using Ymatou.ServiceCenter;
using YmtAuth.AppService;
using YmtAuth.Web.Shard;
using YmtSystem.CrossCutting;


namespace YmtAuth.Web.Handler
{
    
    public class LoginAuth : IHttpHandler
    {
        public bool IsReusable
        {
            get { return false; }
        }

        [ServiceRegister("Login/Auth", Method.GET)]
        public void ProcessRequest(HttpContext context)
        {           
            var ukey = context.GetRequestString(RequestKey.ukey, RequestKey.ukey_def_value);
            var pas = context.GetRequestString(RequestKey.pas, RequestKey.pas_def_value);
            var rtype = context.GetRequestString(RequestKey.rtype, RequestKey.rtype_def_value);
            //var result = LocalServiceLocator.GetService<IAuthAppService>().LoginAuth(ukey, pas, rtype);
            context.ResposeJson("调用接口错误", true);
        }
    }
}
